<?php
/**
 * Created by novebeta.
 * Date: 10/19/12
 * Time: 5:02 PM
 */
return CMap::mergeArray(
    require(dirname(__FILE__) . '/main.php'),
    array(
        'components' => array(
           'urlManager' => array(
                'urlFormat' => 'path',
                'showScriptName' => false,
                'rules' => array(
                    'backend' => 'site/index',
                    'backend/<controller:\w+>/<id:\d+>' => '<controller>/view',
                    'backend/<controller:\w+>/<action:\w+>/<fm:\w+\.\w+>' => '<controller>/<action>',
                    'backend/<controller:\w+>/<action:\w+>/<id:\w+>' => '<controller>/<action>',
                    'backend/<controller:\w+>/<action:\w+>' => '<controller>/<action>',
                ),
            ),
            'syntaxhighlighter' => array(
                'class' => 'ext.JMSyntaxHighlighter.JMSyntaxHighlighter',
                'theme' => 'Django',
//                'theme' => 'Eclipse',
//                'theme' => 'Emacs',
//                'theme' => 'FadeToGrey',
//                'theme' => 'MDUltra',
//                'theme' => 'Midnight',
//                'theme' => 'RDark',
            ),
            'widgetFactory' => array(
                'widgets' => array(
                    'CGridView' => array(
                        'cssFile' => rtrim(dirname($_SERVER['SCRIPT_NAME']), '\\/') . '/css/styles-grid-admin.css',
                    ),
                )
            ),
        ),
    )
);